﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FuckCore.BO;
using FuckData.Model;
using FuckData.DAO;

namespace FuckData.BO
{
    public class CategoryBO : BaseBO<CategoryDAO, tbl_Category>
    {
        CategoryDAO _CategoryDAO = new CategoryDAO();

        /// <summary>
        /// Create by DucND
        /// Datecreate 17/01/2014
        /// Get list of category model
        /// </summary>
        /// <returns></returns>
        public List<CategoryModel> GetListCategory()
        {
            var Result = _CategoryDAO.GetListCategory();
            if (Result == null)
                Result = new List<CategoryModel>();
            return Result;
        }
    }
}
